package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.Result;

import java.util.List;
import java.util.Map;

public interface OrderService {
    //移动端添加预约信息
    Result add(Map<String,Object> map) throws Exception;

    /**
     * @author fxw
     * @param map
     * @param setmealId
     * @return
     * @throws Exception
     *
     */
    //后台添加预约信息
    Result addOrder_fxw(Map<String,Object> map,String setmealId) throws Exception;


    Map findById(String id) throws Exception;
    /**
     * @author fxw
     * @param map  分页查询的条件
     * @return
     * @throws Exception
     */
    PageResult findPage(Map<String,Object> map) throws Exception;

    public Integer findCountByDate(String date);

    public List<Map<String,Object>> findCountByDuring(String date1, String date2);

    Result editOrder(Map<String, Object> map, String setmealId, String orderId) throws Exception;

    void editOrderStatus(String orderStatus, Integer orderId);

    /**
     * 通过会员id查询预约情况
     *
     * @param memberId
     * @return
     */
    Map getOrderInfo(String memberId) throws Exception;
}
